package 装饰模式;

// 创建装饰器抽象类
abstract class CoffeeDecorator implements Coffee {
    protected Coffee decoratedCoffee;
 
    public CoffeeDecorator(Coffee coffee) {
        this.decoratedCoffee = coffee;
    }
 
    @Override
    public double cost() {
        return decoratedCoffee.cost();
    }
 
    @Override
    public String description() {
        return decoratedCoffee.description();
    }
}